updated buildCode send