after porting

porting a part of codes from another comic viewing project