finally!!! working version of getNotPosted!