fixed typo
splitted install method into two methods for better test accessibility