added seq checking