working with cross entropy