shortend code
Merge pull request #1 from psyco01/master

shortened custom facts code