remove firsttime variable to firtst for loop