applying properties at runtime