fixed some software errors