used array broadcasting to lessen amount of memory needed for calc_fsle