correct structure of platform code