changing version number to 3.1.2 to follow with the last couple of changes