removed pmouseX and pmouseY from index