added height function but is broken during load