few helper functions added that make live much easier