removed empty spaces
added more interaction chain logic