geometry functions fixes