coded against empty submission