Fixing prototypes

Fixing the prototype for translate()