partially made it not crash