up function small fix