add getter and update metadata