added calc for height