some minor geometry stuff