How to avoid a bad deal