added check for existsing post