fixed 'duplicate-code'