fixing the main entry