two digits method modified