 	}
 
 	/* do translation */
-	float fetch_x = x + xtrans - transform_info[2];
+	float fetch_x = x + xtrans + transform_info[2];
 	float fetch_y = y + ytrans + transform_info[3];
 
 	/* do rotation */

__host__ void find_dest(float *transform, int width, int height, int *xtrans,
		int*ytrans, int *dwidth, int*dheight)
{
	*xtrans = 0;
	*ytrans = 0;
	*dwidth = width + 250;
	*dheight = height + 250;
}

__host__ int main(int argc, char **argv){

 *	transform should be in form: (single pointer to array in row major form)
 *		cos(theta)	-sin(theta)	t_x
 *		sin(theta)	cos(theta)	t_y
 *		0			0			1
 */
__host__ void apply_transform(float *input, float *output, float *transform, 
		const int width, const int height, int xtrans, int ytrans,
