begin last logic operations