fix on altitude function
writing test altitude