fixing alloca/slot problem