added empty bin protection and tes and ees systematics