tidying up unused variables