get rid of unused variable
flatten icons