fixed bug, now compiles