Attribute X position

edited attribute input xPos and deleteted some useless code