@Override
	public boolean removeComment(Comment comment)
	{
		/*
		 * function gets an POST ID of the specific comment we want to remove and the user name
		 * we make sure to update the number of comments we have i that specific post
		 * we update also the number of posts this user have minus 1
		 * we save all to the data bases
		 */
		{
			Session session = null;
			boolean succses = true;
			try {
				session = factory.openSession();
				session.beginTransaction();
				int id =comment.getId();
				int postId = comment.getPostId();
				String userName = comment.getCreatedBy();
				MainForum mf  = (MainForum)session.load(MainForum.class, postId);
				mf.setPost(mf.getPost() - 1);
				User u = (User)session.load(User.class, userName);
				u.setPosts(u.getPosts() - 1);
				session.delete(comment);
				session.save(mf);
				session.save(u);
				session.getTransaction().commit();
				log.info("a comment was removed");
			} catch (HibernateException e) {
				if (session != null) {
					session.getTransaction().rollback();
					succses = false;
					log.info("a comment failed to removed");
					throw new ForumException(e);
				}
				
			} finally {
				if (session != null) {
					session.close();
				}
				return succses;
			}
		}
	}