use namedtupe instead of class