finally figured out how to compile