@jin fixed bound detect