removed duplicate codes