assets flag format function modified