leg detector added