fixed index
updated to be run through node