updated main.c and added mainlh