build using magpy