max energy should be at least 1