fixed unknown bug by using previous version and modifying it.