impemented funcs inference and revice