checked checkimvu to a function