fixing errors2