some howto samepl code