removed duplicated function among fieldinstance and fieldcollection