proper main added