implement changes in PAT sequence like Javi