added publick key creation