added limits to contorl