change logic operation in last commit