modified for advanced version 2 linux