now main should work properly