changed from class method to member method