finally fixed the fucking planning shit