got rid some unnecessary codes

gotten rid some of the codes that was not useful