reduced memory consumption by 10 mb