got code close to before i deleted the original

Signed-off-by: Exikle <xidstudios@hotmail.com>