added event code check from phone