code for the sfa added