change pos to posedge