overrode configure method