check func fixed