changed gain indexes to 2 to allow for faster sampling