got a handy code snippet to make constant properties so started to implement it in this code