repeat instruction
error handler in repeat
fundef added