make public_key into get method