changed error from version 3 to 2