improve problem11 and closes #1