debug funcs added