cleaning up annoying helper funcs