added first version of the pin state sequence