fixed rect error. was dividing everything in half, actually want to divide along point. wrote draw. works well.