api updates
update some calculations
remove width and height offsets