ensure correct sequence