compiles with maxset