modified terrible code THIS IS TERRIBLE AND SHOULD NEVER BE FUCKING WRITTEN YUH HEARD