add check for height change