add common useful method