fix open method
add size method