oops.. wrong end of if