add pause and size methods