added foundation for curved wall geometry