1. Quality of beans
2. Quality of the grinder
3. Quality of the espresso machine
I'm not exactly sure what sets apart some grinder from another. Some say they more evenly grind the beans (similar particle sizes) but I am not sure if that is all there is to it.