adding changes for mysql 5.6