added field requireds and prints resulting stmts