rough version of up to pastend