added pic and fixed indexing issue