added depth and height method