both routines working