add object guards