convert some to private methods