added pawel code