fixed up for mysql