adds missing return statment