refactor fix private attribute warning
Merge pull request #325 from vipulnsward/fix_attr_warn

refactor fix private attribute warning