fixed bugs. working version