Code was added in file for head and rest methods