fixed major problem with 'getStyleObject' (i forgot to inlcude it)