just dumbing it here

may need modifications but it do the job i need it to