fixed: return values from non-void functions