placed variables inside function