added style creating, parent finding