fixes missing return value