Improve pirate hat application