some of commonly used code segment