added generated code for bitmap and scalar field