fixing errors with eclipse