adding type attribute on datastorage