added the missing islayerof statement