made modification to the way geometry is created