some issues with main