[#345] fix mistype
[#345] small refactoring