fix install function