checking sequence