added window feature, testign memory now