working on tryAlignments method