adding attr_reader on @pids