removed unused deprecated function