inside first if317