manual writing mecode no loops