fixed chase's code. removed extranious variables