trying to get passed memory errror