In the bedtime shema, some siddurim have the bracha of Hamapil printed immediately before the paragraph of shema, whereas others have it printed at the very end of the bedtime shema prayers. What is the reason for each practice? Are there specific communities that have a minhag to do one or the other?