moved var to helper