moved execute instruction into loop