added funtion to get parent styles