window routines added