solving some problems