minor bug fixed while comparing