Function overwritting solved