main not working