fixed some stuff, $results not working