remove redundant function added in the previous commit