added main and header