REV: replaced print with log