improved memory consumption
version update 1.2.1