added checkRasters function