debugged issues with integers