check code continuously