fix magnars' example