creating BE and FE