finished logic part on report