added strict comparison and formated code