pretty printing added