adding quot function; using throughout