removing the hardcoded value of x for translate