I fixed some uneeded misuse of ram