fixed some errors in last commit