Representatives vote as Their party wishes about two-thirds of the time.
The remaining 1/3 votes are usually used to obtain favor from external groups or from other party's representative. For example, a representative from party A could vote for bill that will benefit corporation X in order to obtain a donation for the party