added foundation for terrain