fixing errors in coding logic