add swap byte to int method