So what are you using for a shifter? If you decide to install a SRAM derailleur, you need to have a shifter with the same cable pull ratio. If your bike had a Shimano derailleur previously, that's what I would recommend replacing it with and vice-versa.