fix bug + set boundaries for height