still dont know why r is negative