added subroutine mux and bcd