energy cannot exceed max energy