detecting bag displacement