finishing up loops file