fixed some errors to start testing