deleted temp file and updated Naing's work