feel free to use this in any of your projects :) give credit tho
thanks to @CAD946 for helping me with this