valid invalid bottom code snippet