optimisations
Revert to runing equals before ===

not sure why I changed it