added apply.scm