selection of code commonly used in our projects