added some funcs