fix private method for issues #1