function wasn't used