adding position attribute