set main as an array