figuring out where the entry is