got construct function to work with get args