BEV algorithm