cross layer with math