update and add pseudo