add new code for receive short