wrote install subroutine