finally managed to get my code working !!!