added some geometry stuff