changed min_z to 0.4