james | cleaning up while not loops