remove unsafe operations from collections API