added changes from eddies project calc_fsle so might be right