handle index values from maps in events