removed unused method
corrected a var name