added code for dog