added rudimentary calculated y-spacing