code for embedded