added helpful function