detects and gives error when unknown id is provided