lines 6-7 can be consolidated for consistency