changed sourceDirection and testSourceDirection