use append in initialization
return frame from append
make separate function for initializing internal objects