removed debbuging code