replace pirnts with logs