moved string creation from mask time to build time