fixed not calling class error