fixed bug in decoration method