deleted unused functions and updated content-type