deleted diplicated function