updated random agent without error