stable morphia functions