fixed static funcitons

todo next: overload << for output