prevent referenced before assignment errors