fixed errors in calculating rowRange in process_deposition_data