Took casting out got my branches messed up