verify labels and make subroutines