delete unsafe window declaraction