adding private method functionality working