fix functionfunction