using return instead of echo in a func