added null terminators to fix top row bug
added persistant data