added exceptionfor respository