shortened version of vectorisation