thank you for you answer @ecdrid, yes i am writing a function, but the question is, is there a better manner?