adjusted sizes, reduced ram footprint, removed possible bugs