change the type of pid from Int to String.