fixed some issues but still not compiling