finalised output