add ready,execute logic