how depositions work