moved methods form private to  public