add missing return value from function