code is compilable. but getUnposted does not work correct