changed p_tick to write text