got everything but the routine working