modified to prevent out of memory exception
updated sample project