encapsulating max stuff