code to pass booleans through to legs