added projects code but have bug, please take a look