added funtion to reset array keys