addded some rules stuff