sub with basic functionality
tests