add common fun