fixed overwrited statement