removed system.out and converted to log.d