A bit improved version of palin

Signed-off-by: Lukasz Anaczkowski <lukasz.anaczkowski@intel.com>