working versions of delay and library