working on ouput etc