fixing scope for private method