fixing errors#2