prev() not working; debugging time is fun time