fixing errors!