implemented run()-method