sorry forgot to fully test it. This should do the trick