add check for existence of shuffle method