working out bugs in curriculum funton