solving some minor problems