removed code duplicate