Cross entropy working