functions added - version 0.2