tested code and removed garbage files