Unrobust solution done for datavalidating