moved initialization variable setting