updated with inline code