get this to compile and write...not sure why nothing is being outputted