fixed problem6, added 16