store z height state