added hairpinbool