just changed placement of x variable