add boundary value for drag
add boundary value for drag