added result logging