removed return from enclosed function