updated to work in eclipse
updated to work in eclipse