began work on common subroutines