added configure() function