fixing the main