adding stat funcs