finished project but some bugs remains