frame done, need to adjust pallocs funcs