once memorize delay and shuffle functions