declare method before it's called