check active before set