added helper funcs