using this instead of window