finished print code part