created wrapper for getsize