added two functions, by now incomplete, just testing