made time a variable