added pure to layout