generating code now works, woo