changed initialize method