cleaned up BEM