changing logic