removed missplaced function