fixed some initial errors