adapted to BEAM 4.11