How emotion shapes behavior