removed doublicate function