making into funcs