added controlle for heights