remove unused and confusing robot code