optimalisation declaring vars before function