fixed snippet, added fallback function concept