adding some prints
switching i and k calculation in grad => reduce from hours to minutes calc time