move some 'println' to reduce processing time