remove another duplicated function