don't know why this isn't doing what it should
now that works right