fix rookie declaration errors