calculating entropy per method