grouping public and private methods