works how I wanted it to work now, but maybe a little slow, not sure