almost got it to compile correctly