removed unused fucntion