factor out fragment start code
add negate operation