added robot code