restored bemdecl