adding Joe's isJunction function