add pull up function