move geometry functions to geometry/