replaced int to bigger type long to have romm for 4 byte numbers