added checks and removed hard coded fbs element code
checked check structure and calculate whole fbs