changes if to switch statement
ListSnapshots is not public method