changed minus to equals