added return

Without return, function does not work.