fixing matty bug