removed return statement from entry function