do not use attach() any longer