need to fix loop forever.