fixed install function