improve Week6's performance