tidying up the install method