define variable 'now' before using it