write  common fragment