updated with new devtools and added funbody function